BIN = build/bin/game
OBJ = build/obj/show.o build/obj/game_function.o build/obj/main.o build/obj/getch.o build/obj/login.o
$(BIN): $(OBJ)
	cc  $(OBJ) -o $(BIN)

build/obj/main.o: main.c include/login.h include/show.h include/getch.h include/game_function.h
	cc -Wall -g -c main.c -I include -o build/obj/main.o

build/obj/show.o: package/show.c include/show.h include/getch.h include/login.h
	cc -Wall -g -c package/show.c -I include -o build/obj/show.o

build/obj/game_function.o: package/game_function.c include/game_function.h include/getch.h
	cc -Wall -g -c package/game_function.c -I include -o build/obj/game_function.o

build/obj/login.o: package/login.c include/login.h include/getch.h
	cc -Wall -g -c package/login.c -I include -o build/obj/login.o

build/obj/getch.o: package/getch.c include/getch.h
	cc -Wall -g -c package/getch.c -I include -o build/obj/getch.o

clean:
	rm build/bin/game
	rm build/obj/*.o
